import { ref, computed, reactive } from "vue";
import { defineStore } from "pinia";

export const useCounterStore = defineStore(
  "counter",
  () => {
    //持久化用户信息
    const UserInfo = reactive({
      UserName: "", //用户名
      UserPwd: "", //密码
      RealName: "", //真实姓名
      AccountToken: "", //Token
      //  LongToken: "",
      IsRember: false, //记住密码吗?
    });

    return { UserInfo };
  },
  {
    persist: true,
  }
);
